package com.b511.swpu.cementbackend.service;

import com.b511.swpu.cementbackend.dto.input.SysUserInputDto;
import com.b511.swpu.cementbackend.util.R;
import org.springframework.data.domain.PageRequest;

import javax.servlet.http.HttpServletRequest;

public interface SysUserService {

    R login(SysUserInputDto sysUserInputDto);

    R loginFromMainSys(SysUserInputDto sysUserInputDto);

    R login2(String data) throws Exception;

    R getAllUser(PageRequest pageRequest);

    R updateUser(String userId, SysUserInputDto sysUserInputDto);

    boolean userHasRole(String token,String urlPath);

    R addUser(SysUserInputDto sysUserInputDto);

    R deleteUser(String id);

    R getUserById(String id);

    R getUname(HttpServletRequest request);
}
